package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

import java.util.List;

/**
 * 规则明细对象 ai_drug_rule_resolve
 * 
 * @author wmb
 * @date 2020-08-24
 */
public class DrugRuleResolve extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 药品限制标签id */
    private Long drugRuleId;

    /** 规则分类,0字符,1数字 */
    @Excel(name = "规则分类,0字符,1数字")
    private String ruleCategory;

    /** 规则类型 */
    @Excel(name = "规则类型")
    private String ruleType;

    /** 编码 */
    @Excel(name = "编码")
    private String code;

    /** 关键词 */
    @Excel(name = "关键词")
    private String keywords;

    /** 语义 */
    @Excel(name = "语义")
    private String semanteme;

    /** 算法类型 */
    @Excel(name = "算法类型")
    private String algorithm;

    /** 是否取反 */
    @Excel(name = "是否取反")
    private String negateFlag;

    /** 字符匹配方式 */
    @Excel(name = "字符匹配方式")
    private String matchType;

    /** 目标值，匹配相似度 */
    @Excel(name = "目标值，匹配相似度")
    private String targetValue;

    @Excel(name = "单位")
    private String unit;
    /**
     * 匹配内容
     */
    private String content;

    private String modelName;

    private String modelId;

    private List<DrugResolveTable> tables;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setDrugRuleId(Long drugRuleId) 
    {
        this.drugRuleId = drugRuleId;
    }

    public Long getDrugRuleId() 
    {
        return drugRuleId;
    }
    public void setRuleCategory(String ruleCategory) 
    {
        this.ruleCategory = ruleCategory;
    }

    public String getRuleCategory() 
    {
        return ruleCategory;
    }
    public void setRuleType(String ruleType) 
    {
        this.ruleType = ruleType;
    }

    public String getRuleType() 
    {
        return ruleType;
    }
    public void setCode(String code) 
    {
        this.code = code;
    }

    public String getCode() 
    {
        return code;
    }
    public void setKeywords(String keywords) 
    {
        this.keywords = keywords;
    }

    public String getKeywords() 
    {
        return keywords;
    }
    public void setSemanteme(String semanteme) 
    {
        this.semanteme = semanteme;
    }

    public String getSemanteme() 
    {
        return semanteme;
    }
    public void setAlgorithm(String algorithm) 
    {
        this.algorithm = algorithm;
    }

    public String getAlgorithm() 
    {
        return algorithm;
    }
    public void setNegateFlag(String negateFlag) 
    {
        this.negateFlag = negateFlag;
    }

    public String getNegateFlag() 
    {
        return negateFlag;
    }
    public void setMatchType(String matchType) 
    {
        this.matchType = matchType;
    }

    public String getMatchType() 
    {
        return matchType;
    }
    public void setTargetValue(String targetValue) 
    {
        this.targetValue = targetValue;
    }

    public String getTargetValue() 
    {
        return targetValue;
    }

    public List<DrugResolveTable> getTables() {
        return tables;
    }

    public void setTables(List<DrugResolveTable> tables) {
        this.tables = tables;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getModelName() {
        return modelName;
    }

    public void setModelName(String modelName) {
        this.modelName = modelName;
    }

    public String getModelId() {
        return modelId;
    }

    public void setModelId(String modelId) {
        this.modelId = modelId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("drugRuleId", getDrugRuleId())
            .append("ruleCategory", getRuleCategory())
            .append("ruleType", getRuleType())
            .append("code", getCode())
            .append("keywords", getKeywords())
            .append("semanteme", getSemanteme())
            .append("algorithm", getAlgorithm())
            .append("negateFlag", getNegateFlag())
            .append("matchType", getMatchType())
            .append("targetValue", getTargetValue())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .toString();
    }
}
